<template>
  <div class="app-container">
    <div class="layout-content">
      <keep-alive v-if="$route.meta.keepAlive">
        <router-view></router-view>
      </keep-alive>
      <router-view v-else></router-view>
    </div>
    <div class="layout-footer">
      <TabBar :data="tabbars" @change="handleChange" />
    </div>
  </div>
</template>

<script>
import TabBar from '@/components/TabBar'

export default {
  name: 'Index',
  data() {
    return {
      menuList: [],
      tabbars: [],
      conditions: {
        // reportName: '',
        status: '0',
        current: 1, // 请求第几页
        size: 10 // 每页请求的数量
      }
    }
  },
  components: {
    TabBar
  },
  async mounted() {
    this.tabbars = [
      // {
      //   title: '工作台',
      //   to: {
      //     name: 'home'
      //   },
      //   icon: 'notes-o'
      // }
    ]
  },
  methods: {
    handleChange(v) {
      // console.log('tab value:', v)
    }
  }
}
</script>
